package com.yitao.cms.vo.user.appUser;

import com.yitao.cms.utils.NumberUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;


@Getter
@Setter
public class AppUserInfoVo {


    @ApiModelProperty("用户ID")
    private Long id;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("用户真实姓名")
    private String realName;

    @ApiModelProperty("生日")
    private Date birthday;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("用户状态 false 正常  true 禁用")
    private Boolean userStatus;

    @ApiModelProperty("注册时间")
    private String registerTime;

    @ApiModelProperty("订单个数")
    private  Long orderNumber;

    @ApiModelProperty("消费金额 备注（ 金额都是以分为单位传入前端 如果要转成员需要 / 100）")
    private Long monetary;

    @ApiModelProperty("消费金额 备注 转好元的金额")
    private Double monetaryYuan;

    public Double getMonetaryYuan() {
        return monetaryYuan = NumberUtil.centToYuanForDouble(monetary);
    }
}
